package com.gift.recommendation.modules.admin.dao.mapper;

import com.gift.recommendation.modules.admin.dao.entity.GoodsEntity;
import com.gift.recommendation.modules.admin.dto.GoodsEntityRsp;
import com.gift.recommendation.modules.admin.dto.GoodsListReq;
import com.gift.recommendation.modules.admin.dto.GoodsSaleStatusReq;
import com.gift.recommendation.modules.admin.dto.GoodsSaleStatusRsp;
import com.gift.recommendation.modules.user.dto.OrderReq;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface GoodsMapper extends Mapper<GoodsEntity> {
    List<GoodsEntityRsp> selectList(@Param("arg") GoodsListReq req);
    void updateStock(@Param("arg") OrderReq req);

    List<GoodsSaleStatusRsp> goodsSaleStatus(@Param("arg") GoodsSaleStatusReq req);
}
